package team.you.change.service;

import team.you.change.util.Result;
import team.you.change.pojo.Room;

public interface RoomService {
    //获取所有教室信息
    Result getAllRooms(Integer page, Integer limit);
    //删除一行
    Result del(String id);
    //删除多行
    Result delete(String[] ids);
    //更新
    Result update(Room room);
    //添加
    Result add(Room room);
    //模糊查询
    Result selectByLike(String value, Integer type, Integer time, Integer state, Integer page, Integer limit);
    //代码重复验证
    Result selCode(String code);
    //修改教室状态
    Result state(String id, Integer value, String field);
    //获取教室id和代码(班级人数)
    Result getRoomOption(String classId);
}
